package DBLayer;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import ModelLayer.*;

import java.util.ArrayList;

public class DBEmployeeTest 
{
	private DBEmployee dbEmp;
	
	@Before
	public void setUp() throws Exception {
		dbEmp = new DBEmployee();
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void getAllEmployees() {
		ArrayList<Employee> empList = dbEmp.getAllEmployees();
		
		if(empList != null)
		{
			System.out.println("Employee list:");
			
			for(Employee emp : empList)
			{
				System.out.println(emp.getFirstName());
			}
		}
		else
		{
			fail("not yet implemented");
		}
	}

}
